package cn.edu.pku.mapper;

import java.util.List;
import java.util.Map;

import cn.edu.pku.entity.BookNoteDetail;
import org.apache.ibatis.annotations.Param;

import cn.edu.pku.entity.BookNote;

public interface BookNoteMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookNote record);

    int insertSelective(BookNote record);

    BookNote selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookNote record);

    int updateByPrimaryKeyWithBLOBs(BookNote record);

    int updateByPrimaryKey(BookNote record);

    BookNote selectByBookId(Integer book_id);

    List<BookNote> selectByPage(@Param("start") Integer page, @Param("size") Integer size);

    List<BookNote> selectByCondition(@Param("bookName") String bookName,@Param("author") String author);

    List<BookNote> selectTop(@Param("num") Integer num);

    List<BookNote> queryNote(@Param("name") String name,@Param("author") String author);

    BookNoteDetail getNoteDetail(@Param("id") Integer id);
}